<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8" import="Funcionalidad.*"%>

<jsp:include page="../Apariencia/Cabecera.jsp"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div id="administracion" class="admonAbout">
            <%
        int id_post = Integer.parseInt(request.getParameter("id_post"));

                C_posts.nuevoComentarioPost(id_post, (String) session.getAttribute("loginuser"), request.getParameter("comentario"));
                response.sendRedirect("../Apariencia/VistaNuevoComentario.jsp?id="+id_post);

            %>
        </div>

    </body>
</html>
